from time import sleep
from selenium import webdriver

# 准备options配置项  (chrome://version)
options = webdriver.ChromeOptions()
user_data_dir = r'--user-data-dir=C:\Users\Jgg\AppData\Local\Google\Chrome\User Data\Default'
options.add_argument(user_data_dir)

# 打开浏览器(设置options), 请求目标网址
driver = webdriver.Chrome(options=options)
driver.get('https://mail.qq.com')

sleep(5)
driver.quit()
